local skel = fk.CreateSkill{
  name = "#lb__zhenshu_choose",
}

Fk:loadTranslationTable{
  ["#lb__zhenshu_choose"] = "镇戍",
  ["#lb__zhenshu_choose_ask"] = "镇戍：你可以弃置一张牌并视为打出一张牌，用以响应 %arg",
  ["#lb__zhenshu_choose_name"] = "镇戍：你可以弃置一张牌并视为 %arg2，用以响应 %arg",
}

skel:addEffect("active", {
  prompt = function (self, player, selected_cards, selected_targets)
    if self.interaction.data then
      return "#lb__zhenshu_choose_name:::"..self.extra_data.name..":"..self.interaction.data
    end
    return "#lb__zhenshu_choose_ask:::"..self.extra_data.name
  end,
  interaction = function (self, player)
    return UI.CardNameBox{
      choices = self.extra_data.list
    }
  end,
  card_filter = function (self, player, to_select, selected, selected_targets)
    return #selected == 0 and table.contains(self.extra_data.ids, to_select)
  end,
  feasible = function (self, player, selected, selected_cards, card)
    return self.interaction.data and #selected_cards == 1
  end,
})


return skel